const { register, login, setAvatar, getAllUsers } = require('../controllers/userController')

const userRouter = require('express').Router()

userRouter.post('/register', register)
userRouter.post('/login', login)
userRouter.post('/setavatar/:id', setAvatar)
userRouter.get('/allusers/:id', getAllUsers)

module.exports = userRouter
